package com.springcloud.alibaba.service;

import com.springcloud.configclient.commons.entities.CommonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;

@FeignClient(value = "seata-account-service")
public interface AccountService {

    @PostMapping(value = "/account/decrese")
    public CommonResult decreseAccount(@RequestParam("userId") long userId,@RequestParam("money") BigDecimal money);

}
